<!-- Right side column. Contains the navbar and content of the page -->
<aside class="right-side">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <?php echo $this->lang->line('profile'); ?>
            <small><?php echo $this->lang->line('webname'); ?></small>
        </h1>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <!-- Custom Tabs -->
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#tab_1" data-toggle="tab"><?php echo $this->lang->line('edit'); ?>  <?php echo $this->lang->line('profile'); ?></a></li>
                        <li><a href="#tab_2" data-toggle="tab"><?php echo $this->lang->line('edit'); ?>  <?php echo $this->lang->line('password'); ?></a></li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="tab_1">
                            <!-- general form elements -->
                            <div class="box">
                                <!-- form start -->
                                <?php echo form_open('profiles/edit/'); ?>
                                <div class="box-body">
                                    <?php if (!is_null($message)) echo $message; ?>
                                    <?php echo validation_errors(); ?>

                                    <div class="form-group">
                                        <label><?php echo $this->lang->line('nama'); ?></label>
                                        <input class="form-control" type="text" name="in_p_nama" value="<?php echo set_value('in_p_nama', (isset($profiles->member_nama)) ? $profiles->member_nama : ''); ?>" readonly="true" />
                                    </div>

                                    <div class="form-group">
                                        <label><?php echo $this->lang->line('namanya'); ?></label>
                                        <input class="form-control" type="text" name="in_p_namanya" value="<?php echo set_value('in_p_namanya', (isset($profiles->member_namanya)) ? $profiles->member_namanya : ''); ?>" />
                                    </div>

                                    <div class="form-group">
                                        <label><?php echo $this->lang->line('email'); ?></label>
                                        <input class="form-control" type="text" name="in_p_email" value="<?php echo set_value('in_p_email', (isset($profiles->member_email)) ? $profiles->member_email : ''); ?>">
                                    </div>

                                    <div class="form-group">
                                        <label><?php echo $this->lang->line('status'); ?></label>
                                        <select name="in_p_status" class="form-control">
                                            <?php foreach ($aktifs AS $val => $aktif) { ?>
                                                <option <?php if (set_value('in_p_status', (isset($profiles->member_status)) ? $profiles->member_status : '') == $val) { ?>selected<?php } ?> value="<?php echo $val; ?>"><?php echo $aktif; ?></option>
                                            <?php } ?>
                                        </select>
                                    </div>
                                </div><!-- /.box-body -->
                                <div class="box-footer">
                                    <input class="btn btn-primary" type="submit" name="btn_update" value="<?php echo $this->lang->line('update'); ?>" />
                                    <?php echo anchor('homes/', $this->lang->line('batal'), array('class' => 'btn btn-success')); ?>
                                </div>
                                </form>
                            </div><!-- /.box -->
                        </div><!-- /.tab-pane -->
                        <div class="tab-pane" id="tab_2">
                            <div class="box">
                                <!-- form start -->
                                <?php echo form_open('profiles/pass/'); ?>
                                <div class="box-body">
                                    <?php if (!is_null($message)) echo $message; ?>
                                    <?php echo validation_errors(); ?>

                                    <div class="form-group">
                                        <label><?php echo $this->lang->line('pass'); ?></label>
                                        <input class="form-control" type="password" name="in_p_pass" value="<?php echo set_value('in_p_pass', (isset($profiles->member_pass)) ? $profiles->member_pass : ''); ?>" />
                                    </div>

                                    <div class="form-group">
                                        <label><?php echo $this->lang->line('pass2'); ?></label>
                                        <input class="form-control" type="password" name="in_p_pass2" value="<?php echo set_value('in_p_pass2', (isset($profiles->member_pass)) ? $profiles->member_pass : ''); ?>" />
                                    </div>
                                </div><!-- /.box-body -->
                                <div class="box-footer">
                                    <input class="btn btn-primary" type="submit" name="btn_update" value="<?php echo $this->lang->line('update'); ?>" />
                                    <?php echo anchor('homes/', $this->lang->line('batal'), array('class' => 'btn btn-success')); ?>
                                </div>
                                </form>
                            </div><!-- /.box -->
                        </div><!-- /.tab-pane -->
                    </div><!-- /.tab-content -->
                </div><!-- nav-tabs-custom -->
            </div><!-- /.col -->
        </div> <!-- /.row -->
    </section><!-- /.content -->
</aside><!-- /.right-side -->

